<?php

Yii::import('zii.widgets.CPortlet');

class CourseSearch extends CPortlet {
    
//    public $title = 'Suche';

    protected function renderContent() {
        echo CHtml::beginForm(array('courseSearch/courseSearch'), 'get', array('style'=>'inline')) . 
             CHtml::textField('q', '', array('placeholder'=>'Kurse ...', 'style'=>'width:160px;')) . 
             CHtml::ajaxButton('OK', array('courseSearch/courseSearch'), array(
                'type'=>'POST',
                'update'=>'#mydiv',
            )) . 
           
            CHtml::endForm('');
    }
}
